﻿<UserControl  x:Class="MemoBoss.About"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:local="clr-namespace:MemoBoss"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignWidth="480" d:DesignHeight="800">
    <UserControl.Resources>
        <local:AppSettings x:Key="appSettings"></local:AppSettings>
        <Storyboard x:Name="Hide">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="500"/>
            </DoubleAnimationUsingKeyFrames>
            <!--<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
            </DoubleAnimationUsingKeyFrames>-->
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="LayoutRoot">
                <DiscreteObjectKeyFrame KeyTime="0" >
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Collapsed</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="Show"  Completed="Show_Completed">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="500"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <!--<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
            </DoubleAnimationUsingKeyFrames>-->
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="LayoutRoot">
                <DiscreteObjectKeyFrame KeyTime="0" >
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Loaded="LayoutRoot_Loaded" RenderTransformOrigin="0.5,0.5">
        <Grid.RenderTransform>
            <TranslateTransform/>
        </Grid.RenderTransform>

        <Grid x:Name="ContentPanel"  Margin="12,0,12,0" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Grid x:Name="btnBack" Margin="10,10,10,10" Grid.Column="0" VerticalAlignment="Top"  Tap="btnBack_Tap">
                <Image   Stretch="None" Source="/Icons/appbar.back.rest.png"  HorizontalAlignment="Left" />
                <Image   Stretch="None" Source="/Icons/appbar.basecircle.rest.png"  HorizontalAlignment="Left" />
            </Grid>
            <!--ContentPanel - place additional content here-->
            <Grid  Grid.Column="1" Margin="12,0,12,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <!--<ScrollViewer     ScrollViewer.VerticalScrollBarVisibility="Hidden" Grid.Row="1" Margin="0,0,0,10">-->

                <Grid Grid.Row="0"  VerticalAlignment="Top" Margin="10,10,20,10">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>

                    </Grid.ColumnDefinitions>

                    <TextBlock x:Name="Version" Text="Version 1.0"  Style="{StaticResource PhoneTextTitle2Style}" VerticalAlignment="Center" />
                    <Image Grid.Column="1" Name="image1" Stretch="Fill"  Source="/Images/MotifLogo.png" Height="73" Width="91" VerticalAlignment="Center" HorizontalAlignment="Center" />
                </Grid>
                <Grid  Grid.Row="1"  Margin="12,0,12,0" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>

                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                      


                    </Grid.RowDefinitions>
                    <TextBlock Grid.Column="0"  Grid.ColumnSpan="2"  Grid.Row="0" HorizontalAlignment="Stretch" Margin="10,0,0,0" VerticalAlignment="Stretch"  TextWrapping="Wrap">
            Copyright © 2012 Motif, Lithuania
                    </TextBlock>
                    <TextBlock Grid.Column="0"   Grid.Row="1" HorizontalAlignment="Right"  Margin="10,0,0,0"   VerticalAlignment="Stretch"  TextWrapping="Wrap">
            Developer:
                    </TextBlock>
                    <TextBlock Grid.Column="1"  Grid.Row="1" HorizontalAlignment="Left"  Margin="10,0,0,0"   VerticalAlignment="Stretch"  TextWrapping="Wrap">
            Kęstutis Bagdonas
                    </TextBlock>
                    <TextBlock Grid.Column="0"  Grid.Row="2" HorizontalAlignment="Right"  Margin="10,0,0,0"   VerticalAlignment="Stretch"  TextWrapping="Wrap">
            Music by: 
                    </TextBlock>
                    <TextBlock Grid.Column="1"  Grid.Row="2" HorizontalAlignment="Left"  Margin="10,0,0,0"   VerticalAlignment="Stretch"  TextWrapping="Wrap">
            Mining by Moonlight - Kevin MacLeod (incompetech.com)
                    </TextBlock>
                </Grid>








                <!--</ScrollViewer>-->
                <Grid Grid.Row="2">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                       
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <Image Margin="10,10,20,10" Grid.Column="0" Grid.Row="0" Source="/Icons/appbar.basecircle.rest.png" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Left" />
                    <Image Margin="10,10,20,10" Grid.Column="0" Grid.Row="0" Source="/Icons/appbar.feature.email.rest.png" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Left" Tap="Image_Email" />
                    <TextBlock Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" Margin="10,10,10,10"  VerticalAlignment="Center"  TextWrapping="Wrap">
           Write to us
                    </TextBlock>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>
